
AMPlayRCC
~~~~~~~~~

This is a simple batch script for communicating with AMPlay via
AMPlayRCG.

It needs a couple of utilities (supplied), and a little configuration.

All parameters are set near the start of the file.

Defaults are;

set in=p:\ramdisc\in.txt
set inflag=p:\ramdisc\inflag.txt
set out=p:\ramdisc\out.txt
set outflag=p:\ramdisc\outflag.txt
set wakeflag=p:\ramdisc\wakeflag.txt
set dispfile=c:\temp\amdisp.txt
set tmpfile=c:\temp\amtmp.txt
set webfile=c:\temp\current.txt
set verbose=off
set find=%systemroot%\system32\find.exe
set sleep=%systemroot%\sleep.exe
set timedask=c:\utils\timedask.exe
set temp=%systemroot%\temp

The references to P: assume that you have your P: drive mapped to the
RISC OS box (or that P: is mapped to a network location that the RISC
OS box can access). In this case this comes from my setup where P: is
mapped to a samba share on the Iyonix, and I have a symbolic link to
the ramdisc in the root of the share. (This avoids disk activity due to
the input and output file processing).

The in, out and flags must specify the PC form of the same filenames
that AMPlayRCG is expecting as input and will create as output.

dispfile and tmpfile just need to go in some temporary location. They
should not have spaces in them.

Webfile is used to write out a summary of what is playing now. If that
was written to some web accessible location, then other people would
know what you were listening to.

See http://pcwww.liv.ac.uk/~mikejs/current.txt

The default setting puts it in temp, out of the way.

Verbose, if set to 'on' without the quote marks will cause extra
information to be displayed as messages are sent and received.

The find, sleep and timedask variables must point to the locations of
those utilities. Find is an internal utility, supplied with windows.

Sleep is part of the windows resource kit, but is part of the freely
downloadable subset, so is included here if you don't already have a
copy.

Timedask is a very elderly utility for prompting the user for input and
timing out if no input is received. Choice.com could be substituted,
but the parameters aren't the same and choice has an annoying habit of
not timing out if it receives incorrect input. (e.g. tell it to ask a
y/n question and timeout after 10 seconds. Press X, and it will abort
the timeout and wait indefinitely for a y or n.). Obtained from HENSA
originally.

Temp must point to a writeable temporary location. It must not have
spaces in the name.


You may want to create a shortcut to amplayrcc.bat, and specify
parameters in that to make it look a bit less like a script (e.g.
change font, font size, colours etc.). See scrshot/gif

________________________________________________________________________
Copyright  2005 Mike Sandells, mike@mikejs.com
Last Modified: 29.10.2005
 
